
package com.probiz.estore.system.service;

import java.util.List;

import com.probiz.estore.common.model.system.MailQueue;
import com.probiz.estore.core.service.GenericManager;

/**
 * Manager interface for MailQueue, responsible for business processing, and
 * communicate between web and persistence layer.
 * 
 */
public interface MailQueueManager extends GenericManager<MailQueue> {

	/**
	 * 获取待发送邮件
	 * @param numOfEmailsPerTime
	 * @return
	 */
	public List<MailQueue> fetchMailListToProcess(int numOfEmailsPerTime);
	/**
	 * 清除过期邮件
	 */
	public void cleanExpiredEmails();
	/**
	 * 清理异常状态的邮件队列
	 */
	public void resetIncorrectEmails();
}
